package com.cloud.cmt.usermanage.service;

import com.cloud.cmt.usermanage.entity.Right;
import com.cloud.cmt.usermanage.entity.RoleRightRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by Administrator on 2017/10/21.
 */
@RepositoryRestResource(path = "role_right_relation")
public interface RoleRightRelationRepository extends JpaRepository<RoleRightRelation, Long> {
    List<RoleRightRelation> findByTenantIdAndRoleId(String tenantId, Long roleId);
}
